package com.example.design_pattern.Observer.details;

public class StudentA extends Student{
    public StudentA(Teacher Teacher) {
        this.teacher = Teacher;
        Teacher.addStudent(this);
    }
    @Override
    public void accept() {
        System.out.println("StudentA 接收到了 Teacher 的知识点: "+this.teacher.getMessage());
    }
}
